/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const usersRouter = {
  path: '/driver',
  component: Layout,
  redirect: '/driver/driver-list',
  name: 'Driver',
  meta: {
    title: '司机管理',
    icon: 'driver'
  },
  children: [
    {
      path: '/driver-list',
      name: 'DriverList',
      component: () => import('@/views/driver/driver-list'),
      meta: { title: '司机信息管理' }
    }, {
      path: '/add-driver',
      name: 'AddDriver',
      component: () => import('@/views/driver/add-driver'),
      meta: { title: '注册司机' }
    }
  ]
}

export default usersRouter
